#Makefile for echo_client
CC=g++ -Wall -g
BIN=../../bin
INCLUDE = -I../../dsth/ 
LIB = -L../../dsth -ldsth -lpthread -Wl,-rpath=./
SRC = echo_client.cpp

TARGET = echo_client
OBJS := $(SRC:.cpp=.o)

all : $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) $(LIB)
	-cp $(TARGET) $(BIN)

%.o:%.cpp
	$(CC) -o $@ -c $< $(INCLUDE) 
	
.PHONY:clean
clean:
	-rm -f $(OBJ) $(TARGET) *.o
